package com.study.happystudy.service;

import com.study.happystudy.po.Question;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.List;
public interface QuestionService {

    // 新建题目
    int addQuestion(String questionType, int score, String description, String options, String correctAnswer, int subjectId,String analysis);

    // 根据ID获取题目
    Question getQuestionById(Integer questionId);


    // 根据科目ID获取所有题目
    List<Question> getQuestionsBySubjectId(int subjectId);

    // 根据ID删除题目
    int deleteQuestionById(int questionId);

    // 根据题目类型筛选
    List<Question> getQuestionsByType(String questionType);

    // 根据科目ID和题目类型筛选
    List<Question> getQuestionsBySubjectIdAndType(int subjectId, String questionType);
}
